package com.yoyo.yyadsdk.util;

import android.util.Log;

import com.yoyo.yyadsdk.config.AdvertFeature;


public class LogHelper {
	public static String TAG = "LOG";
	
	
    private static final int LOG_ERROR_VALUE = -1;


    public static int v(String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.e(TAG, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int v(String strTag, String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.e(strTag, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int d(String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.e(TAG, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int d(String strTag, String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.e(strTag, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int i(String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.e(TAG, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int i(String strTag, String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.e(strTag, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int w(String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.e(TAG, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int w(String strTag, String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.e(strTag, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int e(String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.e(TAG, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int e(String strTag, String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.e(strTag, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int wtf(String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.wtf(TAG, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }

    public static int wtf(String strTag, String msg) {
        if (AdvertFeature.FEATURE_LOG_ENABLE) {
            return Log.wtf(strTag, msg);
        } else {
            return LOG_ERROR_VALUE;
        }
    }
    
}
